<template>
	<view class="HFC">
		<view class="HFCTop">
			<view @click="actionIndex(item.id)" :class="actionId == item.id ? 'action' : ''" v-for="item in HFCTop"
				:key="item.id">{{ item.text }}</view>
		</view>
		<view>
			<cardVue :foot='false' title="粤E·00008" extra="代缴费 >" @click="geJiao">
				<view class="HFCCard">
					<view class="HFCCard-item">
						<image
							src="https://cdn7.axureshop.com/demo/1996612/images/%E5%81%9C%E8%BD%A6%E7%BC%B4%E8%B4%B9/u6706.svg">
						</image>
						<view>北大建华路335号</view>
					</view>
					<view class="HFCCard-item">
						<image
							src="https://cdn7.axureshop.com/demo/1996612/images/%E5%81%9C%E8%BD%A6%E7%BC%B4%E8%B4%B9/u6704.svg">
						</image>
						<view>北大建华路335号</view>
					</view>
					<view class="HFCCard-item">
						<image
							src="https://cdn7.axureshop.com/demo/1996612/images/%E5%81%9C%E8%BD%A6%E7%BC%B4%E8%B4%B9/u6705.svg">
						</image>
						<view>北大建华路335号</view>
					</view>
				</view>
			</cardVue>
		</view>
	</view>
</template>

<script setup>
import cardVue from "../../components/card.vue";
import {
	ref
} from "vue"
let HFCTop = ref([{
	id: 0,
	text: "代缴费"
},
{
	id: 1,
	text: "进行中"
},
{
	id: 2,
	text: "已完成"
}
])
let list = ref([
	{
		id: [
			{
				title: "粤E·00008",
				extra: "代缴费",
				id: 0,
				di: "北大建华路335号",
				ru: "2022-02-28 09:59:34",
				CH: '2022-02-2812:33:15'
			}
		]

	}
]
)
let actionId = ref(0)
// 点击高亮
let actionIndex = (id) => {
	actionId.value = id
}

let geJiao = () => {
	uni.navigateTo({
		url: "/pages/HFC/Payment"
	})
}
</script>

<style scoped lang="scss">
.HFC {
	background-color: #f5f5f5;
	height: calc(100vh - 88rpx);
}

.HFCTop {
	height: 80rpx;
	line-height: 80rpx;
	display: flex;
	flex-direction: row;
	justify-content: space-around;

	view {
		width: 33.33%;
		text-align: center;
	}
}

.action {
	border-bottom: #16aef0 1rpx solid;
	color: #16aef0;
	background-color: #fff;
}

.HFCCard {
	.HFCCard-item {
		margin-top: 10rpx;
		display: flex;
		flex-direction: row;
		font-size: 26rpx;
		color: #7F7F7F;

		image {
			width: 30rpx;
			height: 30rpx;
			margin-left: 20rpx;
		}

		view {
			margin-left: 20rpx;
		}
	}
}
</style>